package com.favccxx.search.domain.datasource.datasource;

import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

/**
 * @author favccxx
 */
@Repository
public interface AbstractDataSourceRepo extends MongoRepository<AbstractDataSource, String> {

    /**
     * Get data source by data source code
     *
     * @param code
     * @return
     */
    AbstractDataSource findByCode(String code);

}
